<template>
    <div></div>
</template>

<script setup>
import { useRouter } from "vue-router";

// 判断上次退出是否有路由记录
const routerName = sessionStorage.getItem("routerName");
if (!routerName) {
    const router = useRouter();
    router.push({
        name: "loginAdmin",
    });
}
</script>
